<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <script>
        function outer(){
            let a=11
            function inner(){
                console.log(a);
            }
            inner()
        }
        outer()
    </script>
</body>
</html>